class Admin::BaseController < ApplicationController
  before_filter :authenticate_user!
  before_filter :user_should_be_admin

  protected
    def user_should_be_admin
      redirect_to root_path, :alert => t('access.errors.denied') unless current_user.administrator?
    end
end
